package dao.line;

import java.util.List;

import vo.LineVO;

import com.ibatis.sqlmap.client.SqlMapClient;

public class LineDAOImpl implements LineDAO{

	private SqlMapClient sqlMapClient;

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}

	@Override
	public List<LineVO> getLineList() throws Exception {
		return sqlMapClient.queryForList("line.getLineList");
	}

	@Override
	public void registerLine(String line_name) throws Exception {
		sqlMapClient.insert("line.registerLine", line_name);
	}

	@Override
	public void updateLine(LineVO param) throws Exception {
		sqlMapClient.update("line.updateLine", param);
	}

	@Override
	public void deleteLine(int line_no) throws Exception {
		sqlMapClient.update("line.deleteLine", line_no);
	}
}
